import request from '@/utils/request'

export function advert() {
	return request({
		url: '/notice/advert',
		method: 'get'
	})
}

export function priceInfo(query) {
	return request({
		url: '/product/priceInfo',
		method: 'get',
		params: query
	})
}

export function setPrice(data) {
	return request({
		url: '/product/setPrice',
		method: 'put',
		data: data
	})
}

export function productNames() {
	return request({
		url: '/product/names',
		method: 'get'
	})
}

export function getPayList(query) {
	return request({
		url: '/pay/list',
		method: 'get',
		params: query
	})
}

export function getPayInfo(orderNo) {
	return request({
		url: '/pay/' + orderNo,
		method: 'get'
	})
}

export function getValue(key) {
	return request({
		url: '/system/config/getValue/' + key,
		method: 'get'
	})
}

export function QRCodeImg() {
	return request({
		url: '/wx/QRCodeImg',
		method: 'get'
	})
}

export function msg(key) {
	return request({
		url: '/msg/' + key,
		method: 'get'
	})
}

export function indexNotice(userId) {
	return request({
		url: '/notice/index?userId=' + userId,
		method: 'get'
	})
}

export function readRecord(noticeId) {
	return request({
		url: '/notice/record?noticeId='+noticeId,
		method: 'get'
	})
}